package link.anyauto.weclass.demos.viewpager;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;

import link.anyauto.weclass.R;
import link.anyauto.weclass.base.BaseAct;
import link.anyauto.weclass.databinding.DemoViewPagerTabBinding;

/**
 * Created by Administrator on 2017/2/19.
 */

public class PagerTabActivity extends BaseAct {

    DemoViewPagerTabBinding binding;
    PagerTabVM vm;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        vm = new PagerTabVM(this);
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.demo_view_pager_tab);
        binding.setVm(vm);
    }

    @Override
    public PagerTabVM getVm() {
        return vm;
    }

    @Override
    public DemoViewPagerTabBinding getBinding() {
        return binding;
    }
}
